org.eclipse.vtp.framework.engine.osgi
Class Activator

java.lang.Object
  extended by org.eclipse.vtp.framework.engine.support.AbstractReporter
      extended by org.eclipse.vtp.framework.engine.osgi.Activator
All Implemented Interfaces:
java.util.EventListener, IReporter, org.osgi.framework.BundleActivator, org.osgi.service.log.LogListener, org.osgi.util.tracker.ServiceTrackerCustomizer

public class Activator
extends AbstractReporter
implements org.osgi.framework.BundleActivator, org.osgi.service.log.LogListener, org.osgi.util.tracker.ServiceTrackerCustomizer

Activator for the framework, manages an instance of LogTracker, StaticConfigurationAdmin (if configuration data is available), and ProcessEngineManager.

Since:
3.0
Version:
1.0
Author:
Lonnie Pryor

Field Summary
 
Fields inherited from interface org.eclipse.vtp.framework.core.IReporter
SEVERITY_DEBUG, SEVERITY_ERROR, SEVERITY_INFO, SEVERITY_WARN
 
Constructor Summary
Activator()
          Creates a new Activator.
 
Method Summary
 java.lang.Object addingService(org.osgi.framework.ServiceReference reference)
           
protected  void doReport(int severity, java.lang.String[] categories, java.lang.String message, java.util.Dictionary properties)
          Implementation of report creation and publication after checking the severity.
 boolean isSeverityEnabled(int severity)
          Returns true if the specified severity level is enabled.
 void logged(org.osgi.service.log.LogEntry entry)
           
 void modifiedService(org.osgi.framework.ServiceReference reference, java.lang.Object service)
           
 void removedService(org.osgi.framework.ServiceReference reference, java.lang.Object service)
           
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class org.eclipse.vtp.framework.engine.support.AbstractReporter
report, report, report, report
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Activator

public Activator()
Creates a new Activator.

Method Detail

isSeverityEnabled

public boolean isSeverityEnabled(int severity)
Description copied from interface: IReporter
Returns true if the specified severity level is enabled.

Specified by:
isSeverityEnabled in interface IReporter
Parameters:
severity - The severity to check.
Returns:
True if the specified severity level is enabled.

doReport

protected void doReport(int severity,
                        java.lang.String[] categories,
                        java.lang.String message,
                        java.util.Dictionary properties)
Description copied from class: AbstractReporter
Implementation of report creation and publication after checking the severity.

Specified by:
doReport in class AbstractReporter
Parameters:
severity - The severity of the report.
categories - The categories the report pertains to or null if no catagories are related.
message - The message associated with the report or null to not include a message.
properties - The properties of the report or null if no properties are specified.

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception

logged

public void logged(org.osgi.service.log.LogEntry entry)
Specified by:
logged in interface org.osgi.service.log.LogListener

addingService

public java.lang.Object addingService(org.osgi.framework.ServiceReference reference)
Specified by:
addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizer

modifiedService

public void modifiedService(org.osgi.framework.ServiceReference reference,
                            java.lang.Object service)
Specified by:
modifiedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer

removedService

public void removedService(org.osgi.framework.ServiceReference reference,
                           java.lang.Object service)
Specified by:
removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer